using System;
using System.Diagnostics.CodeAnalysis;
using System.Testing;
using Nsb.Classes;
using jQueryApi;

namespace Nsb.Tests
{
    [SuppressMessage("Microsoft.Performance", "CA1812",
        Justification = "Tests don't have internal consumers. They're only compiled into .test.js scripts.")]
    internal sealed class Tests1 : TestClass
    {

        public void TestFormulas()
        {
            string id = Formulas.NewId;
            Assert.IsTrue(Type.GetScriptType(id) == "string", "NewId[" + id + "] is a string");
            Assert.IsTrue(id.Length >= 10, "NewId[" + id + "] length >= 10");
        }

    }
}